package com.springboot;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.springboot.service.UserService;

@RestController
public class RestTestController {
	
	@Autowired
	private UserService userRepository;
	   
	@RequestMapping("rest")
	public List<Map<String, Object>>  rest(){
		return userRepository.select();
	}
}
